how to determine transformations of a function